#! /bin/bash
echo "input"
read file_path
if [ -d "$file_path " ];then
echo "exist"
exit 0
fi
echo "content is:"
read back_file_path
if [ -d "$back_file_path" ];then
echo"This content has existed!"
else
echo "Do not have this content!"
exit 0
fi
filename=`date +%Y%m%d`
tar -czpvf ${back_file_path}/${filename}.tar.gz${file_paht}
